package org.sapra.main;


import echopointng.*;
import echopointng.able.Positionable;
import echopointng.layout.DisplayLayoutData;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.Logger;
import nextapp.echo2.app.ApplicationInstance;
import nextapp.echo2.app.Window;
import nextapp.echo2.app.WindowPane;
import org.sapra.echo.Styles;
import org.sapra.logon.wLogin;


public class ZapraxApp extends ApplicationInstance  {
    
    /** Creates a new instance of ZapraxApp */
    public ZapraxApp() {
    }
    
    /**
     * @see nextapp.echo2.app.ApplicationInstance#init()
     */
    public Window init() {
        Window mainWindow = new Window();
        mainWindow.setTitle("ZAPRAX");
        ContentPaneEx pane = new ContentPaneEx();

        ContentPaneEx pane2=new ContentPaneEx();
        // Estilos
        setStyleSheet(Styles.DEFAULT_STYLE_SHEET);

        // Configuracion de Log
        Logger.getLogger("").setLevel(Level.FINE);
        Handler[] handlers = Logger.getLogger( "" ).getHandlers();
        for ( int index = 0; index < handlers.length; index++ ) {
            handlers[index].setLevel( Level.FINE );
            handlers[index].setFormatter(new java.util.logging.SimpleFormatter());
        }

        WindowPane wp=new wLogin();
        pane.add(wp);
        
        mainWindow.setContent(pane);
        return mainWindow;
    }
}
